package elsim.entities

import org.junit.Test;
import static org.junit.Assert.assertEquals

/**
 * Sanity check test
 */
class PassengerTest {
    @Test
    void testSmoke() {
        Passenger p = new Passenger("sgzmd", 123)
        assertEquals("sgzmd", p.name)
    }
    
    @Test
    void testDistance() {
      Passenger p = new Passenger("sgzmd", 30)
      assertEquals(5, p.distanceFromDestinationTo(25))
    }
}
